﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace VM.Entity.EntityDto.Goods
{
    public class addGoodSpecDto
    {
        #region Model
        private int? _id;
        private int _parentid;
        private string _name;
        private int _qty;
        private decimal _price;
        private string _description;
        private int _orderno;
        private int _position;
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public int? id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 父内码
        /// </summary>
        public int parentId
        {
            set { _parentid = value; }
            get { return _parentid; }
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 数量
        /// </summary>
        public int qty
        {
            set { _qty = value; }
            get { return _qty; }
        }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal price
        {
            set { _price = value; }
            get { return _price; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int orderNo
        {
            set { _orderno = value; }
            get { return _orderno; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public int position
        {
            set { _position = value; }
            get { return _position; }
        }

    }
    #endregion
}
